/**
 * Project Name:sc-eureka-ribbon
 * File Name:RibbonApplication.java
 * Package Name:com.sc.test
 * Date:2016��12��13������10:26:45
 * Copyright (c) 2016, ����֪ʱ��Ϣ�Ƽ����޹�˾ All Rights Reserved.
 *
*/

package com.sc.test;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * ClassName:RibbonApplication <br/>
 * Function: <br/>
 * Date:     2016��12��13�� ����10:26:45 <br/>
 * @author   guooo
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@SpringBootApplication
@EnableDiscoveryClient
public class RibbonApplication {

    public static void main(String[] args) {
        SpringApplication.run(RibbonApplication.class, args);
    }
    
    @Bean
    @LoadBalanced
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}

